<template>
  <transition name="fade">
    <slot></slot>
  </transition>
</template>

<script>
export default {
  name: "AnimationTransition"
};
</script>

<style scoped>
/* 开始过渡阶段,动画出去阶段 */
.fade-enter-active,
.fade-leave-active {
  transition: all 200ms;
}
/* 进入开始 */
.fade-enter {
  transform: translateX(-266px);
}
/* 出去终点 */
.fade-leave-active {
  transform: translateX(0);
}
</style>
